<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>

<link href="css/index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript"> 
$(function(){
	
	// 移到留言上可以删除,编辑-------------------------------------------


		$('#mian .list .onep').hover(function() {
			$(this).find('a').show();
			$(this).find('.edit_a').show();
			$(this).find('.content').addClass('content1');
		}, function() {
			$(this).find('a').hide();
			$(this).find('.edit_a').hide();
			$(this).find('.content').removeClass('content1');
		});

   // 留言方式的切换------------------------------------------------


		var c=1;
		$('.close').click(function(event) {
			if(c==1){
				$('#right').stop().animate({"top": 800+'px'},2000).parent().parent().find('#bottom_out').stop().animate({"bottom": 0+'px'},3000);
				c=0;
			}else{
				$('#right').stop().animate({"top": 50+'px'},2000).parent().parent().find('#bottom_out').stop().animate({"bottom": -120+'px'},3000);
				c=1;
			}
		});

	
	
})


</script>

</head>

<body>
<div id="top">
		<h1>留言板</h1>
</div>

<div id="mian_out">
	 
   </div>
   
    <div id="right" style="right: 500px">
			<h2>留下你的脚步吧</h2>
                        <form action="" method="post">
				<p class="one">
				昵称:<input class="name" name="username" type="text" value="<?php echo $row['username']?>" /> 
				<input type="radio" name="sex" value="男"
                                      <?php
                                      if($row['sex']=='男')
                                          echo'checked="checked"';
                                      ?>                                      
                                       />男侠
				<input type="radio" name="sex" value="女"  <?php
                                      if($row['sex']=='女')
                                          echo'checked="checked"';
                                      ?>/>女侠
				</p>
				<p><textarea name="message" ><?php echo $row['message']?></textarea></p>
				<p class="tow">
					<input type="radio" name="imgurl" value="images/1.jpg"
                                        <?php if($row['imgurl']=='images/1.jpg')
                                                echo'checked="checked"';
                                      ?>/>
                                        <img src=" images/1.jpg" alt="" />
					<input type="radio" name="imgurl" value="images/2.jpg" 
                                        <?php if($row['imgurl']=='images/2.jpg')
                                          echo'checked="checked"';
                                      ?>/><img src=" images/2.jpg" alt="" />
					<input type="radio" name="imgurl" value="images/3.jpg" 
                                        <?php if($row['imgurl']=='images/3.jpg')
                                          echo'checked="checked"';
                                      ?>/><img src=" images/3.jpg" alt="" />
					<input type="radio" name="imgurl" value="images/4.jpg" 
                                        <?php if($row['imgurl']=='images/4.jpg')
                                          echo'checked="checked"';
                                      ?>/><img src=" images/4.jpg" alt="" />
				</p>
				<p class="thr"><input class="btn" type="submit" value="提交" /></p>
			</form>
			<div class="close"></div>
</div>
   
</div>



</body>
</html>